#include "StdAfx.h"
#include "Material.h"

CMaterial::CMaterial(void)
: Diffuse(1.f)
, Specular(0.f)
, SpecularExponent(1)
, Reflection(0.f)
, ReflectionColor(1.f,1.f,1.f)
{

}

CMaterial::~CMaterial(void)
{

}
void CMaterial::SetDiffuse(float f)
{
	Diffuse = f;
}
float CMaterial::GetDiffuse()
{
	return Diffuse;
}
void CMaterial::SetReflection(float f)
{
	Reflection = f;
}
float CMaterial::GetReflection()
{
	return Reflection;
}
void CMaterial::SetSpecular(float f, int e)
{
	Specular = f;
	SpecularExponent = e;
}
float CMaterial::GetSpecular()
{
	return Specular;
}
int CMaterial::GetSpecularExponent()
{
	return SpecularExponent;
}
void CMaterial::SetReflectionColor(const CColor& color)
{
	ReflectionColor = color;
}
CColor& CMaterial::GetReflectionColor()
{
	return ReflectionColor;
}